﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Asko.Lib.Views;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;

namespace Asko.Lib.ViewModels
{
    public class NodeViewModel : ViewModelBase
    {
        #region Champs
        private NodeView _view;
        private GraphViewModel _graphVM;        
        #endregion

        #region Méthodes
        public NodeViewModel()
        {
            _view = null;
            _graphVM = null;
            //les commandes           
        }

        #endregion

        #region Propriétés
        public GraphViewModel Graph
        {
            get { return _graphVM; }
            set { _graphVM = value; }
        }
        public string Name
        {
            get;
            set;
        }
        public RelayCommand SelectCommand
        {
            get;
            private set;
        }
        public const string ViewPropertyName = "View";
        public NodeView View
        {
            get { return _view; }
            set
            {
                if (_view != value)
                {
                    _view = value;
                    RaisePropertyChanged(ViewPropertyName);
                }
            }
        }
        #endregion
    }
}
